﻿<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh-CN">
<head>
<%@ include file="/include/include.jsp" %>
</head>

<body>
	
	<%@ include file="/include/header.jsp" %>

	<%@ include file="/include/menu.jsp" %>
	
			
	<div id="mainContent">
		<h2><a href="${ctx}/${menu.url}">${menu.description}</a>&nbsp;-&nbsp;<a href="${ctx}/${empty currViewBarSubMenu_ ? submenu.url : currViewBarSubMenu_.url}">${empty currViewBarSubMenu_ ? submenu.description : currViewBarSubMenu_.description}</a></h2>
		
			<h2>Sales Order No:&nbsp;&nbsp; ${salesOrderNumber} &nbsp;-&nbsp;Sales Date:&nbsp;&nbsp; ${inventoryRecord.salesOrderDate}</h2>	
		
		<form action="${ctx}/warehouse/inventoryrecord/waresearch/${inventoryRecord.warehouse.id}/view?beginDate=${beginDateString}&endDate=${endDateString}" method="post" id="warehouseForm">
			<h2>仓储编号 :&nbsp;&nbsp; <a href="${ctx}/warehouse/inventoryrecord/waresearch/${inventoryRecord.warehouse.id}/view?beginDate=${beginDateString}&endDate=${endDateString}" > ${inventoryRecord.warehouse.code } </a>&nbsp;-&nbsp;仓储名称 :&nbsp;&nbsp; <a href="${ctx}/warehouse/inventoryrecord/waresearch/${inventoryRecord.warehouse.id}/view?beginDate=${beginDateString}&endDate=${endDateString}" > ${inventoryRecord.warehouse.name}</a></h2>
			<h2>区域编号:&nbsp;&nbsp; ${inventoryRecord.warehouse.region.number } &nbsp;-&nbsp;区域编号 :&nbsp;&nbsp; ${inventoryRecord.warehouse.region.name }</h2>
			<h2>所在地址 :&nbsp;&nbsp; ${inventoryRecord.warehouse.address }</h2>
			
			<input type="hidden" name="beginDate" value="${beginDate}"/>
			<input type="hidden" name="endDate" value="${endDate}"/>
			<input type="hidden" name="warehouse.code" value="${inventoryRecord.warehouse.code }"/>
			<input type="hidden" name="warehouse.name" value="${inventoryRecord.warehouse.name }"/>
		</form>
			
		
		<div class="grid-list">
			<table class="grid" cellspacing="0">
				<thead>
					<tr>
						<td>产品类别</td>
						<td>产品编码</td>
						<td>产品名称</td>
						<td>数量 </td>
					</tr>
				</thead>
				<tbody>
					<c:forEach var="inventoryRecord" items="${inventoryRecords}">
						<tr onmouseover="this.style.backgroundColor= '#A0CFEC'" onmouseout="this.style.backgroundColor= '#ffffff'"  ${inventoryRecord.total ? 'class="totalMsg"' : ''}>
							<c:if test="${!inventoryRecord.total}">
								<td>${inventoryRecord.product.productCategory.categoryName }</td>
								<td>${inventoryRecord.product.productCode }</td>
								<td>${inventoryRecord.product.productName }</td>
								<td>${inventoryRecord.amount }</td>
							</c:if>
						</tr>
					</c:forEach>
				</tbody>
			</table>
			
		</div>
	</div>
	
	<%@ include file="/include/script.jsp" %>
	<%@ include file="/include/foot.jsp" %>
</body>

</html> 